package com.stream.repository;

import com.stream.model.entity.SysMenuEntity;

import java.util.List;

/**
 * 菜单管理
 * Created by Stream on 2017/5/22.
 */
public interface SysMenuRepository extends BaseRepository<SysMenuEntity> {
    /**
     * 根据父菜单，查询子菜单
     */
    List<SysMenuEntity> queryListParentId(Long parentId);

    /**
     * 获取不包含按钮的菜单列表
     */
    List<SysMenuEntity> queryNotButtonList();

    /**
     * 查询用户的权限列表
     */
    List<SysMenuEntity> queryUserList(Long userId);

}
